home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
gondwana.ecr.mu.oz.au/pub/
/
Graphics.tar
/
Graphics
/
ArtForTheMac.sea.hqx
/
Sample Scenes
/
Bedroom
/
br.scn
< prev
next >
Wrap
Text File
|
1992-09-25
|
22KB
|
916 lines
/*
* bedroom scene
*
* Alberto Barsella.
*/
fieldofview 60.0
lookat (120, 130, -630, 150, 120, -430, 0.0)
raysperpixel 4
antialiasing adaptive
maxtreedepth 44
maxhitlevel 9
# /* main lamp bulbs */
#light {
# color 0.4, 0.4, 0.4
# location (130, 200, -180)
#/* radius 5
# numrays 8 */
# }
#light {
# color 0.4, 0.4, 0.4
# location (210, 200, -180)
#/* radius 5
# numrays 8 */
# }
/* light coming from the TV */
light {
color .15, .15, .18
location (170, 72, -21)
radius 16
numrays 4
}
/* light coming from the outside */
light {
color .353, .35, .4
location (-500, 330, -310)
radius 20
numrays 6
}
/* table lamp bulb */
light {
color .4, .4, .35
location(61.44, 117, -261.98)
radius 3
numrays 8
}
# ambient .32, .29, .28
/* 'full light' version: light from main lamp (2x) and light from TV */
ambient .2, .2, .2
/* 'watching TV' version: light from TV, outside and table lamp */
/* room walls */
composite {
material 0.0, 0.8, 0.2, 5
color 0.9, 0.9, 0.9
/* ceiling */
polygon {
ambient .5, .5, .5
vertex (0.0, 240, 0.0)
vertex (320, 240, 0.0)
vertex (320, 240, -700)
vertex (0.0, 240, -700)
}
/* right side */
polygon {
vertex (0.0, -10, -240)
vertex (0.0, 240, -240)
vertex (0.0, 240, -700)
vertex (0.0, -10, -700)
}
polygon {
vertex (0.0, -10, -150)
vertex (0.0, 80, -150)
vertex (0.0, 80, -240)
vertex (0.0, -10, -240)
}
polygon {
vertex (0.0, 180, -150)
vertex (0.0, 240, -150)
vertex (0.0, 240, -240)
vertex (0.0, 180, -240)
}
polygon {
vertex (0.0, -10, 10)
vertex (0.0, 240, 10)
vertex (0.0, 240, -150)
vertex (0.0, -10, -150)
}
/* front */
polygon {
vertex (330, 0.0, 0.0)
vertex (330, 240, 0.0)
vertex (-10, 240, 0.0)
vertex (-10, 0.0, 0.0)
}
/* left side */
polygon {
vertex (320, 0.0, -700)
vertex (320, 240, -700)
vertex (320, 240, 0.0)
vertex (320, 0.0, 0.0)
}
}
/* floor */
polygon {
tile tile.pix size 0.0625, 0.125
material 0.0, .75, .25, 20.0
vertex (0.0, 0.0, 0.0)
vertex (0.0, 0.0, -640)
vertex (320, 0.0, -640)
vertex (320, 0.0, 0.0)
}
/* window */
csg {
/* frame */
material 0, .8, .2, 5
color .8, .4, 0
texture wood2 {
translate(.5, 0, 10)
scale(10, 10, 10)
rotate(90, x)
blendcolor .5, .3, 0
scalefactors 20, 4, 3
}
box outside {
vertex (5, 188, -142)
vertex (-5, 80, -248)
}
box hole1 {
vertex (10, 180, -152)
vertex (-10, 75, -190)
}
box hole2 {
vertex (10, 180, -200)
vertex (-10, 75, -238)
}
outside - hole1 - hole2
}
sphere {
material 0, .25, .75, 6
color .3, .3, .3
reflectance .5
center (8, 125, -195)
radius 4
}
box {
color .8,.8,.8
material 0, .6, .4, 15
texture granite {
scale(4, 4, 4)
blendcolor .5,.5,.5
scalefactor 1
}
vertex(8, 80, -135)
vertex(-8, 75, -255)
}
polygon {
color 0, 0, 0
material 0, 0, .5, 200
reflectance .3
transparency .8
vertex(0, 80, -150)
vertex(0, 180, -150)
vertex(0, 180, -240)
vertex(0, 80, -240)
}
/* table */
composite {
material 0, .8, .2, 5
color .4, .2, 0
/* plan */
box {
texture wood2 {
translate(.3, .2, -1)
rotate(-35, x)
scale(10, 10, 10)
blendcolor .2, .1, 0
scalefactors 20, 4, 3
}
vertex (90, 70, -140)
vertex (0, 60, -320)
}
/* legs */
cylinder {
texture wood2 {
translate(4, 0, 4)
rotate(92, x)
scale(7, 7, 7)
blendcolor .2, .1, 0
scalefactors 20, 4, 3
}
center (70, 0, -160)
center (70, 60, -160)
radius 5
}
cylinder {
texture wood2 {
translate(3, 0, 4)
rotate(95, x)
scale(7, 7, 7)
blendcolor .2, .1, 0
scalefactors 20, 4, 3
}
center (20, 0, -160)
center (20, 60, -160)
radius 5
}
cylinder {
texture wood2 {
translate(4, 0, 2)
rotate(87, x)
scale(7, 7, 7)
blendcolor .2, .1, 0
scalefactors 20, 4, 3
}
center (70, 0, -300)
center (70, 60, -300)
radius 5
}
cylinder {
texture wood2 {
translate(1, 0, 6)
rotate(90, x)
scale(7, 7, 7)
blendcolor .2, .1, 0
scalefactors 20, 4, 3
}
center (20, 0, -300)
center (20, 60, -300)
radius 5
}
}
/* table lamp */
composite {
rotate(325, y)
translate(0, 100, -305)
color 1, .4, .3
material 0, .6, .4, 100
sphere {
center(0, 0, 0)
radius 5
}
cylinder {
center(0, 0, 0)
center(25, 40, 0)
radius 2
}
cylinder {
center(25, 40, -2.5)
center(25, 40, 2.5)
radius 4
}
cylinder {
center(25, 40, 0)
center(75, 20, 0)
radius 2
}
csg {
cone le {
center(75, 13, 0)
vertex(75, 27, 0)
radius 13
}
cone li {
center(75, 11, 0)
vertex(75, 25, 0)
radius 13
}
cone te {
center(75, 18, 0)
radius 5
center(75, 33, 0)
radius 3
}
le + te - li
}
/* the bulb should be radius 3 at (75, 20, 0) */
}
/* items on the table */
csg glass {
cone eg {
color .2, .2, .2
material 1.2, .1, .6, 400
reflectance .3
transparency .6
center(0, 0, 0)
radius 2.5
center(0, 12, 0)
radius 3.3
}
cone ig {
color .2, .2, .2
material 1.2, .1, .4, 400
reflectance 0
transparency .9
center(0, 1, 0)
radius 2.2
center(0, 12, 0)
radius 3.0
}
eg - ig
}
glass {
translate (75, 70, -290)
}
glass {
translate (55, 70, -270)
}
/* coke in second glass */
cone {
color .4, .2, 0
material 0, 1, 0, 0
transparency .3
absorption 1
center(55, 71.2, -270)
radius 2.1
center(55, 76, -270)
radius 2.5
}
/* coke bottle */
csg {
color .1, .1, .1
material 1.2, 0, .7, 300
transparency .8
reflectance .2
rotate(-90, x)
translate(35, 75, -200)
ellipsoid tp {
center(0, 0, 21)
radii 6, 6, 10.8
}
cylinder nk {
center(0, 0, 27)
center(0, 0, 36)
radius 1.5
}
torus bs {
color .1, .05, 0
material 0, .5, .5, 100
transparency 0
reflectance .2
center(0, 0, 0)
radii 3, 3
}
cylinder mds {
color 1, 0, 0
material 0, .8, .2, 100
transparency 0
reflectance 0
texture tile {
rotate(-90, z)
vortfile coke.pix
size 1, 1
}
center(0, 0, 0)
center(0, 0, 21)
radius 6
}
bs + mds + tp + nk
}
/* chair */
composite {
material 0, .8, .2, 5
color .8, .4, 0
texture wood2 {
translate(50, 0, 10)
rotate(85, x)
scale(7, 7, 7)
blendcolor .5, .2, 0
scalefactors 20, 3, 3
}
rotate(210, y)
translate(120, 0, -215)
cylinder {
center(15, 0, -15)
center(15, 44, -15)
radius 3
}
cylinder {
center(15, 0, 15)
center(15, 44, 15)
radius 3
}
cylinder {
center(-15, 0, -15)
center(-15, 90, -15)
radius 3
}
cylinder {
center(-15, 0, 15)
center(-15, 90, 15)
radius 3
}
sphere {
center(-15, 90, -15)
radius 3
}
sphere {
center(-15, 90, 15)
radius 3
}
box {
vertex(18, 44, 18)
vertex(-18, 40, -18)
}
polygon {
vertex(-15, 70, -15)
vertex(-19, 70, -8)
vertex(-19, 85, -8)
vertex(-15, 85, -15)
}
polygon {
vertex(-19, 70, -8)
vertex(-19, 70, 8)
vertex(-19, 85, 8)
vertex(-19, 85, -8)
}
polygon {
vertex(-15, 70, 15)
vertex(-19, 70, 8)
vertex(-19, 85, 8)
vertex(-15, 85, 15)
}
}
superquadric {
color .7, .4, .2
material 0, .5, .5, 50
rotate(210, y)
translate(120, 0, -215)
vertex(17.5, 46, 17.5)
vertex(-17.5, 43, -17.5)
order 3
}
/* bookshelf */
composite {
color .9, .6, .5
material 0, .8, .2, 5
box {
texture wood2 {
translate(6, -1.5, 0)
rotate(88, y)
scale(12, 12, 12)
blendcolor .4, .2, 0
scalefactors 20, 3, 3
}
vertex (120, 120, 0)
vertex (40, 115, -40)
}
box {
texture wood2 {
translate(3, -.5, 0)
rotate(5, y)
scale(8, 8, 8)
blendcolor .4, .2, 0
scalefactors 20, 3, 3
}
vertex (40, 120, 0)
vertex (0, 115, -120)
}
}
/* items on the bookshelf */
composite {
material 0, .8, .2, 20
/* books */
polygon {
color .7, .7, .6
vertex(40, 160, 0)
vertex(110, 160, 0)
vertex(110, 160, -30)
vertex(40, 160, -30)
}
polygon {
color 1, .24, 1
vertex(40, 120, 0)
vertex(40, 160, 0)
vertex(40, 160, -30)
vertex(40, 120, -30)
}
polygon {
color .05, .24, .81
vertex(110, 120, 0)
vertex(110, 160, 0)
vertex(110, 160, -30)
vertex(110, 120, -30)
}
polygon {
tile books.pix size 1, 1
vertex(110, 160, -30)
vertex(40, 160, -30)
vertex(40, 120, -30)
vertex(110, 120, -30)
}
/* black box */
box {
color 0, 0, 0
material 0, .4, .6, 6
vertex(25, 130, -50)
vertex(10, 120, -80)
}
}
/* vase */
csg {
color .6, .3, 0
material 0, .9, .1, 20
texture fuzzy {
scalefactor .1
}
rotate (-90, x)
translate(22, 123, -20)
torus bse {
center(0, 0, 0)
radii 7, 3
}
ellipsoid tp {
center (0, 0, 22.5)
radii 15, 15, 25
}
box cut {
vertex(16, 16, 0)
vertex(-16, -16, 17.5)
}
tp * cut + bse
}
/* main lamp */
composite {
color 0,0,0
material 0, 0, .8, 1000
reflectance .8
sphere {
center(170, 240, -180)
radius 15
}
sphere {
center(170, 200, -180)
radius 10
}
cylinder {
center(170, 205, -180)
center(170, 235, -180)
radius 5
}
cylinder {
center(135, 200, -180)
center(205, 200, -180)
radius 2.5
}
/* bulbs: watch out, removing comments slows things down */
color 1,1,1
material 0, 1, 0, 1
reflectance 0
transparency 1
sphere {
center(210, 200, -180)
radius 5
}
sphere {
center(130, 200, -180)
radius 5
}
}
/* bed */
csg {
/* bed itself */
material 0,.8,.2,5
color .2,.6,.2
texture wrinkled {
scale(10, 10, 10)
range 2
scalefactor .2
}
box clip {
vertex(325, 50, -5)
vertex(210, 5, -245)
}
superquadric bed {
vertex(320, 45, -10)
vertex(215, 0, -240)
order 7
}
bed * clip
}
/* pillow */
superquadric {
material 0,.8,.2,5
color .7,.7,.7
texture wrinkled {
scale(10, 10, 10)
range 2
scalefactor .2
}
vertex(310, 53, -195)
vertex(225, 43, -235)
order 4
}
/* TV table */
composite {
color .9, .9, .9
material 0, .7, .3, 20
box {
vertex(200, 50, 0)
vertex(140, 45, -60)
}
box {
vertex(195, 45, 0)
vertex(145, 0, -55)
}
}
/* TV */
csg {
color .6, .6, .6
material 0, .1, .9, 25
superquadric ext {
vertex(192, 90, -6)
vertex(148, 50, -54)
order 8
}
sphere ab {
center (158, 89.5, -16)
radius 5
}
box int {
color 0, 0, 0
material 0, 0, 0, 1
vertex(187.2, 86, -20)
vertex(152.8, 55.6, -60)
}
ext - int + ab
}
/* screen */
polygon {
tile gullss.pix size 1, 1
ambient .6, .6, .6
material 0, 1, .4, 200
transparency 1
vertex(187.2, 82, -50)
vertex(152.8, 82, -50)
vertex(152.8, 58, -50)
vertex(187.2, 58, -50)
}
/* antenna */
composite {
color .8, .8, .8
material 0, .1, .9, 500
reflectance .8
cylinder {
center(158, 89.5, -16)
center(178, 140, -21)
radius 1.5
}
sphere {
center(178, 140, -21)
radius 3
}
}
/* stool? */
composite {
rotate(330, y)
translate(175, 0, -310)
color 1, 0, 0
material 0, .6, .4, 20
superquadric {
vertex(15, 40, 15)
vertex(-15, 36, -15)
order 5
}
color .8, .8, .8
material 0, .1, .9, 500
reflectance .8
cylinder {
center(8, 37, 8)
center(13, -1, 13)
radius 2
}
cylinder {
center(-8, 37, 8)
center(-13, -1, 13)
radius 2
}
cylinder {
center(-8, 37, -8)
center(-13, -1, -13)
radius 2
}
cylinder {
center(8, 37, -8)
center(13, -1, -13)
radius 2
}
}
/* generic furniture */
composite {
material 0, .8, .2, 5
color .8, .5, .3
box {
texture wood2 {
translate (150, 0, 150)
rotate (90, x)
scale (8, 8, 40)
blendcolour 0.6, 0.35, 0.15
scalefactors 20, 4, 3
}
vertex (320, 70, -260)
vertex (255, 0, -460)
}
/* upper */
box {
texture wood2 {
translate (.3, 0, -2)
rotate (90, x)
scale (8, 8, 40)
blendcolour 0.6, 0.35, 0.15
scalefactors 20, 4, 3
}
vertex (320, 200, -260)
vertex (310, 70, -460)
}
/* sections */
box {
texture wood2 {
translate (.7, 0, 1.3)
rotate (90, x)
scale (8, 8, 40)
blendcolour 0.6, 0.35, 0.15
scalefactors 20, 4, 3
}
vertex(254, 70, -260)
vertex(250, 2, -340)
}
box {
texture wood2 {
translate (.8, 0, 4)
rotate (90, x)
scale (16, 16, 20)
blendcolour 0.6, 0.35, 0.15
scalefactors 20, 4, 3
}
vertex(254, 70, -343)
vertex(250, 2, -380)
}
box {
texture wood2 {
translate (.8, 0, 2.5)
rotate (90, x)
scale (8, 8, 40)
blendcolour 0.6, 0.35, 0.15
scalefactors 20, 4, 3
}
vertex(254, 70, -383)
vertex(250, 2, -460)
}
}
/* handles */
sphere {
material 0, .2, .8, 20
color .1, .1, .1
center(247, 50, -335)
radius 3
}
sphere {
material 0, .2, .8, 20
color .1, .1, .1
center(247, 50, -348)
radius 3
}
sphere {
material 0, .2, .8, 20
color .1, .1, .1
center(247, 50, -388)
radius 3
}
/* mirror */
disk {
material 0, 0, .5, 1000
color 0, 0, 0
reflectance .8
center (0, 0, 0)
radius 60
rotate (90, y)
translate (308, 135, -350)
}
/* portrait */
composite {
color .4, .4, .4
material 0, .8, .2, 20
polygon {
tile kym256s.pix size 1, 1
vertex(280, 98.3, -318)
vertex(280, 98.3, -270)
vertex(270, 70, -270)
vertex(270, 70, -318)
}
polygon {
vertex(270.1, 70, -318)
vertex(270.1, 70, -270)
vertex(280.1, 98.3, -270)
vertex(280.1, 98.3, -318)
}
polygon {
vertex(276.5, 88, -294)
vertex(283, 70, -299)
vertex(283, 70, -289)
}
}
/* picture (side of bed) */
polygon {
material 0, 1, 0, 1
tile boats.pix size 1, 1
vertex(318, 215, -200)
vertex(318, 215, -40)
vertex(318, 115, -40)
vertex(318, 115, -200)
}
/* picture (base of bed) */
polygon {
material 0, 1, 0, 1
tile parrots.pix size 1, 1
vertex(300, 175, -1)
vertex(220, 175, -1)
vertex(220, 125, -1)
vertex(300, 125, -1)
}